﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Newtonsoft.Json;

namespace KDSugar.Galaxy.API.Base
{
    /// <summary>
    /// 携带了编号、内码和网控标志的操作指令抽象类
    /// </summary>
    public abstract class BaseNumberIdNetwork : BaseNumbersIds
    {
        /// <summary>
        /// 携带了编号、内码和网控标志的操作指令抽象类|初始化
        /// </summary>
        /// <param name="_url"></param>
        /// <param name="_formId"></param>
        /// <param name="_client"></param>
        public BaseNumberIdNetwork(string _url,string _formId,GalaxyCloudAPIClient _client)
            : base(_url, _formId, _client)
        {

        }

        /// <summary>
        /// 携带了编号、内码和网控标志的操作指令抽象类|初始化
        /// </summary>
        /// <param name="_url"></param>
        /// <param name="_formId"></param>
        /// <param name="_opNumber"></param>
        /// <param name="_client"></param>
        public BaseNumberIdNetwork(string _url,string _formId,string _opNumber,GalaxyCloudAPIClient _client)
            : base(_url, _formId, _opNumber, _client)
        {

        }

        /// <summary>
        /// 创建者组织内码
        /// <para>【注意】单组织/标准版|请勿赋值</para>
        /// </summary>
        [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
        public string CreateOrgId { get; set; } = null;

        /// <summary>
        /// 是否启用网控
        /// <para>默认false</para>
        /// </summary>
        public bool NetworkCtrl { get; set; } = false;
    }
}
